/**
 * Copyright (c) 2021 ucsmy.com, All rights reserved.
 */
package com.ruoyi.common.constant;

import java.math.BigDecimal;

/**
 * @Description: 商城 静态池
 * @Author: Administrator
 * @Created Date: 2021年03月29日
 * @LastModifyDate:
 * @LastModifyBy:
 * @Version:
 */
public class MallConstant {

    /**
     * 服务器地址
     */
    public static final String SERVER_IP = "https://qihuikeji.com.cn/admin";
    //public static final String SERVER_IP = "http://16z719279i.iask.in";

    /**
     * vip支付金额 (元)
     */
    public static final BigDecimal VIP_PAY_MONEY = new BigDecimal(10);


    /**
     * 超时时间(毫秒)
     * 900000  15分钟
     * 30000   30秒
     *
     */
    public static final Integer EXPIRE_TIME = 900000;

    /**
     * 订单支付类型 1 微信
     *
     */
    public static final Integer ORDER_PAY_TYPE_WECHATPAY = 1;


    /**
     * 参数字段 夜间开始开始时间 (二十四小时制)
     */
    public static final String CONFIG_NIGHT_START_TIME = "mall.night_start_time";

    /**
     * 参数字段 夜间结束时间(二十四小时制)
     */
    public static final String CONFIG_NIGHT_END_TIME = "mall.night_end_time";


    /**
     * 参数字段 一键报修_夜间_维修费用(元)
     */
    public static final String CONFIG_MAINTENANCE_NIGHT_FEES = "mall.pay.maintenance_night_fees";

    /**
     * 参数字段 一键报修_维修员_夜间_维修收益(元)
     */
    public static final String CONFIG_REPAIRMAN_NIGHT_INCOME = "mall.repairman.night_income";


    /**
     * 参数字段 一键报修 维修费 字段
     */
    public static final String CONFIG_MAINTENANCE_FEES = "mall.pay.maintenance_fees";

    /**
     * 参数字段 维修员收到的维修收益 字段
     */
    public static final String CONFIG_REPAIRMAN_INCOME = "mall.repairman.income";

    /**
     * 参数字段 邀请会员积分收益 字段
     */
    public static final String CONFIG_RECOMMENDER_INCOME = "mall.recommender.income";

    /**
     * 参数字段 注册收益(积分) 字段
     */
    public static final String CONFIG_REGISTER_INCOME = "mall.register.income";

    /**
     * 参数字段 平台抽成比例 字段
     */
    public static final String CONFIG_COMMISSION_OPERATOR = "mall.commission.operator";

    /**
     * 参数字段 平台抽成上限(元) 字段
     */
    public static final String CONFIG_COMMISSION_OPERATOR_MAX = "mall.commission.operator.max";

    /**
     * 参数字段 推荐人抽成比例 字段
     */
    public static final String CONFIG_COMMISSION_RECOMMENDER = "mall.commission.recommender";

    /**
     * 参数字段 推荐人抽成上限(元) 字段
     */
    public static final String CONFIG_COMMISSION_RECOMMENDER_MAX = "mall.commission.recommender.max";

    /**
     * 错误信息提示 会员Id不能为空
     */
    public static final String RESULT_ERROR_MSG_MEMBER_ID_IS_NULL = "会员ID不能为空!";

    public static final String RESULT_ERROR_MSG_TOKEN_IS_NULL = "token为空";

    /**
     * 错误信息提示 会员Id不能为空
     */
    public static final String RESULT_ERROR_MSG_MEMBER_OPEN_ID_IS_NULL = "memberOpenId不能为空";

    /**
     * 错误信息提示 未查询到该会员
     */
    public static final String RESULT_ERROR_MSG_MEMBER_NOT_FIND = "未查询到该会员!";

    /**
     * 错误信息提示 会员已被冻结
     */
    public static final String RESULT_ERROR_MSG_MEMBER_IS_FREEZE = "您已被冻结,请联系管理员!";

    /**
     * 错误信息提示 数据不属于该用户
     */
    public static final String RESULT_ERROR_MSG_NOT_BELONG_THIS_MEMBER = "数据不属于该用户!";

    //维修订单状态 1=待付款,2=待接单,3=待上门,4=待服务/待发货,5=待评价,6=已完结,7=超时,8=取消
    //购物订单状态 1=待付款,2=待发货,4=待收货,5=待评价,6=已完结,8=取消
    //VIP订单状态 1=待付款,2=待发货,4=待收货,6=已完结
    public static final Integer ORDER_STATUS_PENDING_PAYMENT = 1;
    public static final Integer ORDER_STATUS_PENDING_ORDER = 2;
    public static final Integer ORDER_STATUS_WAITING_TO_COME = 3;
    public static final Integer ORDER_STATUS_TO_BE_SERVED = 4;
    public static final Integer ORDER_STATUS_TO_BE_EVALUATED = 5;
    public static final Integer ORDER_STATUS_COMPLETED = 6;
    public static final Integer ORDER_STATUS_TIMEOUT = 7;
    public static final Integer ORDER_STATUS_CANCEL = 8;


    //维修员状态  正常（1：接单 2：休息）冻结（3：未缴费 4：被投诉）
    public static final String REPAIRMAN_STATUS_ORDERS= "1";
    public static final String REPAIRMAN_STATUS_REST = "2";
    public static final String REPAIRMAN_STATUS_UNPAID = "3";
    public static final String REPAIRMAN_STATUS_COMPLAINT = "4";

    //维修员身份 1：预备维修员 2：正式维修员
    public static final String REPAIRMAN_IDENTITY_FORMAL = "1";
    public static final String REPAIRMAN_IDENTITY_PREPARATION = "2";

    //是否使用汇民券 1：使用 2：未使用
    public static final Integer USE_PEOPLE_COUPON = 1;
    public static final Integer NOT_USE_PEOPLE_COUPON = 2;

    //关联商品类型 1：会员小店 2：代理商
    public static final Integer STORE_PULL_VIP = 1;
    public static final Integer STORE_PULL_AGENT = 2;


    //资金变动类型
    public static final String CHANGE_TYPE_ADD = "+";
    public static final String CHANGE_TYPE_SUB = "-";

    //维修订单类型 1=上门,2=到店
    public static final String REPAIR_ORDER_TYPE_TO_DOOR = "1";
    public static final String REPAIR_ORDER_TYPE_IN_STORE = "2";


    //商城订单类型 1=会员小店, 2=普通订单,3=报修推荐
    public static final Integer SHOP_ORDER_STATUS_VIP = 1;
    public static final Integer SHOP_ORDER_STATUS_AGENT = 2;
    public static final Integer SHOP_ORDER_STATUS_PUSH = 3;

    //支付状态 0=未支付,1=已支付,2=已退款
    public static final Integer PAY_STATUS_UNPAY= 0;
    public static final Integer PAY_STATUS_PAYED = 1;
    public static final Integer PAY_STATUS_REFUND = 2;

    //支付关联类型 1：报修 2：vip 3：代理商 4：维修员 5：商城 6：vip商城
    public static final String PAY_TYPE_REPAIR = "1";
    public static final String PAY_TYPE_TOBE_VIP = "2";
    public static final String PAY_TYPE_TOBE_AGENT = "3";
    public static final String PAY_TYPE_TOBO_REPAIR_MAN = "4";
    public static final String PAY_TYPE_MALL_ORDER = "5";
    public static final String PAY_TYPE_VIP_ORDER = "6";

    //通用投诉状态 1=投诉, 2=撤诉
    public static final Integer COMPLAINT_STATUS_COMPLAINING = 1;
    public static final Integer COMPLAINT_STATUS_WITHDRAW = 2;

    //通用投诉状态 1：vip 2：未开通vip
    public static final Integer MEMBER_IS_VIP = 1;
    public static final Integer MEMBER_IS_NOT_VIP = 2;



}